package com.teamin.entity;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * @author  qfu
 * @Date 2017/9/19 16:48
 * 文件的实体
 */
public class FileEntity implements Serializable {

    @ApiModelProperty(value = "主建ID")
    private Integer id;

    @ApiModelProperty(value = "文件的UUID")
    private String uuid;

    @ApiModelProperty(value = "文件的后缀")
    private String suffix;

    @ApiModelProperty(value = "文件的创建时间")
    private Date createTime;

    @ApiModelProperty(value = "文件的大小")
    private Long size;

    @ApiModelProperty(value = "文件是否被删除")
    private Integer isdelete ;

    @ApiModelProperty(value = "文件删除时间")
    private Date deleteTime ;

    @ApiModelProperty(value = "文件的地址")
    private String url ;

    @ApiModelProperty(value = "文件的名称")
    private String fileName ;

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public Long getSize() {
        return size;
    }

    public String getUrl() {
        return url;
    }

    public void setSize(Long size) {
        this.size = size;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid == null ? null : uuid.trim();
    }

    public String getSuffix() {
        return suffix;
    }

    public void setSuffix(String suffix) {
        this.suffix = suffix == null ? null : suffix.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getIsdelete() {
        return isdelete;
    }

    public Date getDeleteTime() {
        return deleteTime;
    }

    public void setIsdelete(Integer isdelete) {
        this.isdelete = isdelete;
    }

    public void setDeleteTime(Date deleteTime) {
        this.deleteTime = deleteTime;
    }

    @Override
    public String toString() {
        return "FileEntity{" +
                "id=" + id +
                ", uuid='" + uuid + '\'' +
                ", suffix='" + suffix + '\'' +
                ", createTime=" + createTime +
                ", size=" + size +
                ", url='" + url + '\'' +
                ", fileName='" + fileName + '\'' +
                '}';
    }
}